package com.pocket.mic.service.impl;

import java.util.Date;

import com.pocket.mic.dao.GameDao;
import com.pocket.mic.model.Desk;
import com.pocket.mic.model.Game;
import com.pocket.mic.service.GameService;

public class GameServiceImpl implements GameService{

	private GameDao gameDao;
	
	public GameDao getGameDao() {
		return gameDao;
	}

	public void setGameDao(GameDao gameDao) {
		this.gameDao = gameDao;
	}

	@Override
	public Long addDesk(Desk desk) {
		// TODO Auto-generated method stub
		return gameDao.addDesk(desk);
	}

	@Override
	public Long addGame(Game game) {
		// TODO Auto-generated method stub
		return gameDao.addGame(game);
	}

	@Override
	public Game getLiveGame() {
		// TODO Auto-generated method stub
		return gameDao.getLiveGame();
	}

	@Override
	public Long getMaxDesk() {
		// TODO Auto-generated method stub
		return gameDao.getMaxDesk();
	}

	@Override
	public Long getMaxGame() {
		// TODO Auto-generated method stub
		return gameDao.getMaxGame();
	}

	@Override
	public Game getWaitGame() {
		// TODO Auto-generated method stub
		return gameDao.getWaitGame();
	}

	@Override
	public boolean updateLiveStatus(boolean status) {
		// TODO Auto-generated method stub
		return gameDao.updateLiveStatus(status);
	}

	@Override
	public boolean updateWaitStatus(boolean status) {
		// TODO Auto-generated method stub
		return gameDao.updateWaitStatus(status);
	}

	@Override
	public boolean updateLiveCount(Game game) {
		// TODO Auto-generated method stub
		
		return gameDao.updateLiveCount(game);
	}

	@Override
	public boolean updateTime(Game game) {
		// TODO Auto-generated method stub
		return gameDao.updateTime(game);
	}

}
